<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ include file="/common/taglibs.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <%@ include file="/common/meta.jsp" %>
    <title><decorator:title/> | <fmt:message key="webapp.name"/></title>

    <link rel="stylesheet" type="text/css" media="all"
          href="<c:url value='/styles/${appConfig["csstheme"]}/theme.css'/>"/>
    <link rel="stylesheet" type="text/css" media="print"
          href="<c:url value='/styles/${appConfig["csstheme"]}/print.css'/>"/>
    <link rel="stylesheet" type="text/css" media="screen" href="<c:url value='../styles/jc.css'/>"/>

    <c:set var="jron" scope="request"><decorator:getProperty property="meta.author"/></c:set>
    <c:choose>
        <c:when test="${jron != 'jron'}"> <%-- appfuse default --%>
            <script type="text/javascript" src="<c:url value='/scripts/prototype.js'/>"></script>
            <script type="text/javascript" src="<c:url value='/scripts/scriptaculous.js'/>"></script>
            <script type="text/javascript" src="<c:url value='/scripts/global.js'/>"></script>
        </c:when>
        <c:otherwise>
            <script type="text/javascript" src="<c:url value='/scripts/mootools/mootools.js'/>"></script>
            <script type="text/javascript" src="<c:url value='/scripts/moodalbox.js'/>"></script>
            <link rel="stylesheet" type="text/css" media="screen" href="<c:url value='../styles/jcmenu.css'/>"/>
            <link rel="stylesheet" type="text/css" media="screen" href="<c:url value='../styles/moodalbox.css'/>"/>
        </c:otherwise>
    </c:choose>

    <decorator:head/>
</head>
<body<decorator:getProperty property="body.id" writeEntireProperty="true"/>
        <decorator:getProperty property="body.class" writeEntireProperty="true"/>>

<div id="page">
    <div id="header" class="clearfix">
        <jsp:include page="/common/header.jsp"/>
    </div>

    <div id="content_cool" class="clearfix">
        <div id="main">
            <%@ include file="/common/messages.jsp" %>
            <h1><decorator:getProperty property="meta.heading"/></h1>
            <decorator:body/>
        </div>

        <c:choose>
            <c:when test="${jron != 'jron'}">
                <c:set var="currentMenu" scope="request"><decorator:getProperty property="meta.menu"/></c:set>
                <c:if test="${currentMenu == 'AdminMenu'}">
                    <div id="sub">
                        <menu:useMenuDisplayer name="Velocity" config="cssVerticalMenu.vm" permissions="rolesAdapter">
                            <menu:displayMenu name="AdminMenu"/>
                        </menu:useMenuDisplayer>
                    </div>
                </c:if>

                <div id="nav">
                    <div class="wrapper">
                        <h2 class="accessibility">Navigation</h2>
                        <jsp:include page="/common/menu.jsp"/>
                    </div>
                    <hr/>
                </div>
            </c:when>
            <c:otherwise>
                <jsp:include page="/common/jcmenu.jsp"/>
            </c:otherwise>
        </c:choose>

    </div>

    <div id="footer" class="clearfix">
        <jsp:include page="/common/footer.jsp"/>
    </div>
</div>
</body>
</html>
